﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace OverlakeApp.Views
{
    /// <summary>
    /// A page that shows a single course's information.
    /// </summary>
    public partial class ViewCoursePage : PhoneApplicationPage
    {
        /// <summary>
        /// Initializes the ViewCoursePage
        /// </summary>
        public ViewCoursePage()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            ViewModels.OverlakeViewModel vm = this.DataContext as ViewModels.OverlakeViewModel;
            vm.SelectedTeacher = vm.TeacherForCurrentSection;
            NavigationService.Navigate(new Uri("/Views/ViewTeacherDetail.xaml", UriKind.Relative));
        }
    }
}